package com.weiliu.feign.controller;

import com.weiliu.feign.service.ServiceHello;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: cloud-parent
 * @description:
 * @author: weiliuaj
 * @create: 2020-09-03 14:17
 */
@RestController
public class ControllerHello {
    @Autowired
    private ServiceHello serviceHello;

    @GetMapping(value = "/hi")
    public String sayHi(@RequestParam String name) {
        return serviceHello.sayHiFromClientOne(name);
    }
}
